#ifndef CAPTCHA_H
#define CAPTCHA_H

#include <QWidget>

class captcha : public QWidget
{
    Q_OBJECT
public:
    explicit captcha(QWidget *parent = nullptr);
    QString get_x();
protected:
    void mousePressEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void paintEvent(QPaintEvent *event);


private:
    bool press;
    QPoint point;
    QList<QPoint> point_list;
    QString x;

};

#endif // CAPTCHA_H
